package edu.pw.p2pclient.networking.messages;

import java.net.InetAddress;

import edu.pw.p2pclient.logic.SharedManager;

public class HelloMessage extends Message {

	private static final long serialVersionUID = 4895224286804086468L;

	private long mListVersion;

	public HelloMessage() {

		super(MsgType.HELLO_MESSAGE);
		mListVersion = SharedManager.getInstance().getListVersion();
	}

	public HelloMessage(InetAddress address) {

		super(MsgType.HELLO_MESSAGE, address);
		mListVersion = SharedManager.getInstance().getListVersion();
	}

	public long getListVersion() {

		return mListVersion;
	}

}
